Skip to content

Fix error while deleting query history item#2131

Merged
koesie10 merged 1 commit intomainfrom
koesie10/fix-delete-local-query
Mar 2, 2023
Merged

Fix error while deleting query history item#2131
koesie10 merged 1 commit intomainfrom
koesie10/fix-delete-local-query

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Mar 2, 2023

When deleting a query history item and the "next" query is still running, the completedQuery is undefined. This commit fixes it by using optional chaining to ensure that the completedQuery is defined before accessing its successful property.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

When deleting a query history item and the "next" query is still
running, the `completedQuery` is `undefined`. This commit fixes it by
using optional chaining to ensure that the `completedQuery` is defined
before accessing its `successful` property.
@koesie10 koesie10 requested a review from a team as a code owner March 2, 2023 11:34
@koesie10 koesie10 merged commit a0ba112 into main Mar 2, 2023
@koesie10 koesie10 deleted the koesie10/fix-delete-local-query branch March 2, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants